﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace StairsModuleAndEdit.StairsEdit.DataDefine
{
	internal struct LandingInfo
	{
		public LandingInfo(double dblval, CurveLoop cval, List<ElementId> idval)
		{
			this.BaseElevation = dblval;
			this.curves = new List<Curve>();
			CurveLoopIterator curveLoopIterator = cval.GetCurveLoopIterator();
			while (curveLoopIterator.MoveNext())
			{
				Curve item = curveLoopIterator.Current;
				this.curves.Add(item);
			}
			this.ids = new List<ElementId>(idval);
		}

		public double BaseElevation;

		public IList<Curve> curves;

		public IList<ElementId> ids;
	}
}
